<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link href="/resource/css/index_work.css" rel="stylesheet">
<script type="text/javascript" src="/resource/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/resource/js/jquery.validate.js"></script>
</head>
<body>
	<div align="center">
	<form action="<%=request.getContextPath()%>/ToList">
		关键字:<input type="text" name="cname" value="${cname}">
		描述:<input type="text" name="cmiao" value="${cmiao}">
		公司名称:<input type="text" name="ctname" value="${ctname}">
		主营产品:<input type="text" name="cpost" value="${cpost}">
		地址:<input type="text" name="caddr" value="${caddr}">
		注册资本:<input type="text" name="ctime" value="${ctime}">-<input type="text" name="ctime" value="${ctime}">
		成立时间:<input type="text" name="cdate" value="${cdate}">-<input type="text" name="cdate" value="${cdate}">
		<button>查询</button>
	</form>
		<table>
			<tr>
				<th>编号</th>
				<th>关键字</th>
				<th>描述</th>
				<th>公司名称</th>
				<th>主营产品</th>
				<th>地址</th>
				<th>注册资本(万元)</th>
				<th>成立时间</th>
				<th>年检日期</th>
				<th>年检状态</th>
				<th>备注</th>
				<th>操作</th>
			</tr>
			<c:forEach items="${list}" var="a">
				<tr>
					<td>${a.cid}</td>
					<td>${a.cname}</td>
					<td>${a.cmiao}</td>
					<td>${a.ctname}</td>
					<td>${a.cpost}</td>
					<td>${a.caddr}</td>
					<td>${a.cprice}</td>
					<td>${a.ctime}</td>
					<td>${a.cdate}</td>
					<td>${a.ctype}</td>
					<td>${a.cbei}</td>
					<td>
					<a href="<%=request.getContextPath()%>/ToShenHe/${a.cid}"><button>
					${a.pkid == 1 ? "未审核":""}
					${a.pkid == 2 ? "年检审核":""}
					${a.pkid == 3 ? "已审核":""}</button></a>
					</td>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>